package com.ruoyi.bzjgl.controller;

import com.ruoyi.bzjgl.domain.Bzjtable;
import com.ruoyi.bzjgl.service.IFlowService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/case/flow")
public class FlowController extends BaseController {
    @Resource
    private IFlowService flowService;

    @GetMapping("/listByXh/{ajxh}/{lb}")
    public TableDataInfo listByXh(@PathVariable("ajxh") String ajxh,@PathVariable("lb") String lb)
    {
        startPage();
        List<Bzjtable> list = flowService.selectListByXh(ajxh,lb);
        return getDataTable(list);
    }
}
